
class Result {

   static ok(res,result){
     return res.send({success:true,code:200,result:result})
   }

  static err(res,result){
    return this.errCode(res,500,result);
  }

  static errCode(res,code,result){
    return res.status(code).json({success:false,code:code,result:result});
  }
}

export  default Result;
